home *** CD-ROM | disk | FTP | other *** search
- Path: ssds.com!usenet
- From: Ron Romero <ron.romero@ssds.com>
- Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.c++
- Subject: Symantec 7.2 Hello World Problem
- Date: Fri, 22 Mar 1996 10:02:55 -0500
- Organization: SSDS, Inc.
- Distribution: inet
- Message-ID: <3152C11F.2975@ssds.com>
- NNTP-Posting-Host: rem_vie23.ssds.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
- CC: ron.romero@ssds.com
-
- I'm having trouble doing a C++ Hello World program with Symantec C++ 7.2, using output to windows
- 3.11 console. It seems like this should be trivial, but it dowsn't work. It works with printf,
- but cout produces no output.
-
- Here's the code:
-
- -----Cut Here------------
- #include <iostream.h>
- #include <stdio.h>
-
- main()
- {
- cout << "Hello World" << endl;
-
- printf("Goodbye World\n");
- }
- -----Cut Here------------
-
- This produces "Goodbye World" on the first line of the console window.
-
- Any ideas? Am I just not linking right?
-
- Ron Romero
-